package com.lhdx.practical.service;

import com.lhdx.practical.bean.Task;
import org.springframework.data.domain.Page;

import java.util.List;

public interface TaskService {
    void save(Task task);
    void deleteById(long id);
    Task findById(long id);
    List<Task> findAllByAuthoridAndTypeAndSidAndMidAndGradeid(long authorid,int type,long sid,long mid,long gradeid);

    List<Task> findAllByTypeAndSidAndMidAndGradeid(int type,long sid,long mid,long gradeid);

    Page<Task> getResultList(long mid, long sid,long gradeid, int type, int page, int pagesize);

    List<Task> findAllByGroupidAndType(long groupid,int type);

    List<Task> findAllByGradeidAndType(long gradeid,int type);

    int countAllBySidAndType(long sid,int type);
}
